<ion-header>
  <ion-toolbar color="primary">
    <ion-buttons>
      <ion-title>公文</ion-title>
      <ion-icon (click)="AddDocument()" slot="end" name="add" style="margin-right: 20px; font-size: 30px;"> </ion-icon>
    </ion-buttons>
  </ion-toolbar>
</ion-header>
<ion-segment value="all" (ionChange)="segmentChanged($event)">
  <ion-segment-button value="all">
    <ion-label>公文列表</ion-label>
  </ion-segment-button>
  <ion-segment-button value="my">
    <ion-label>我发送的公文</ion-label>
  </ion-segment-button>
</ion-segment>
<ion-content>
  <ion-list *ngIf="status === 4">
    <ion-item *ngFor="let item of list" (click)="GoDetail(item)">
      <ion-label>
        {{item.title}}
      </ion-label>
    </ion-item>
  </ion-list>
  <app-loading *ngIf="status === 1"></app-loading>
  <app-no-data *ngIf="status === 3"></app-no-data>
  <!-- 下拉刷新 -->
  <ion-refresher slot="fixed" (ionRefresh)="doRefresh($event)">
    <ion-refresher-content></ion-refresher-content>
  </ion-refresher>
  <!-- 上拉加载 -->
  <!-- <ion-infinite-scroll threshold="100px" (ionInfinite)="loadData($event)">
    <ion-infinite-scroll-content loadingSpinner="bubbles" loadingText="数据加载中..."> </ion-infinite-scroll-content>
  </ion-infinite-scroll> -->
</ion-content>
